<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');
?>
<div class="pad_10">
    <div class="table-list">
        <a href="index.php?m=goods&c=goods&a=goods_customize_type_add&menuid=<?= $_GET['menuid']; ?>&pc_hash=<?= $_GET['pc_hash'] ?>" class="btn">添加分类</a>
        <form name="smsform" action="" method="get">
            <input type="hidden" value="goods" name="m">
            <input type="hidden" value="goods" name="c">
            <input type="hidden" value="init" name="a">
            <input type="hidden" value="<?php echo $_GET['menuid'] ?>" name="menuid">
            <table width="100%" cellspacing="0">
                <thead>
                <tr>
                    <th>分类名称</th>
                    <th>排序</th>
                    <th>添加时间</th>
                    <th>更新时间</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <?php
                if (is_array($infos)) {
                    foreach ($infos as $info) {
                        ?>
                        <tr>
                            <td align="center"><?= $info['name'] ?></td>
                            <td align="center"><?= $info['sort']?></td>
                            <td align="center"><?= date('Y-m-d H:i:s',$info['addtime']) ?></td>
                            <td align="center"><?= date('Y-m-d H:i:s',$info['updatetime']) ?></td>
                            <td align="center">
                                <a href="index.php?m=goods&c=goods&a=goods_customize_type_edit&id=<?= $info['id'] ?>&menuid=<?= $_GET['menuid']; ?>&pc_hash=<?= $_GET['pc_hash'] ?>">编辑分类</a>
                                <a href="index.php?m=goods&c=goods&a=goods_customize_type_delete&id=<?= $info['id'] ?>&menuid=<?= $_GET['menuid']; ?>&pc_hash=<?= $_GET['pc_hash'] ?>">删除分类</a>
                            </td>
                        </tr>
                        <?php
                    }
                }
                ?>
                </tbody>
            </table>
            <div id="pages"><?php echo $pages ?></div>
        </form>
    </div>
</div>
<br>
<br>
</body>
</html>